package com.kitchen
{
	import flash.display.BitmapData;
	import flash.display.Sprite;

	public class AbstractModule extends Sprite
	{
		protected var mainSkin:BitmapData;
		protected var dialogSkin:BitmapData;
		protected var shoper:Object;
		protected var shops:Array;
		protected var shop:Object;
				
		public function AbstractModule(){
			super();
	    }
		
		public function setConfig(mainSkin:BitmapData, dialogSkin:BitmapData, shoper:Object, shops:Array, shop:Object):void{
			this.mainSkin = mainSkin;
			this.dialogSkin = dialogSkin;
			this.shop = shop;
			this.shoper = shoper;
			this.shops = shops;
			this.layout();
		}
		
		protected function layout():void{
			throw new Error('must override this function in child class', 601);
		}
		
		
	}
}